import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'


// 1. 引入你需要的组件
import { Button,Toast,Tabbar, TabbarItem,Form, Field, CellGroup,Swipe, SwipeItem,
    ActionBar, ActionBarIcon, ActionBarButton, Empty, Cell  } from 'vant';

// 2. 引入组件样式
import 'vant/lib/index.css';
import router from './router';
//映入
import axios from './utils/axios';
import './mock'

// 引入 pxTorem
import 'amfe-flexible'


const app = createApp(App)

// 3. 注册你需要的组件
app.use(Button);
app.use(Toast);
app.use(Tabbar);
app.use(TabbarItem);
app.use(Form);
app.use(Field);
app.use(CellGroup);
app.use(Swipe);
app.use(SwipeItem);
app.use(ActionBar);
app.use(ActionBarIcon);
app.use(ActionBarButton);
app.use(Empty);
app.use(Cell);

app.use(router)
//
app.config.globalProperties.$axios = axios

app.mount('#app')
